<template>
    <div>
        <ul>
            <li>
                <router-link to="/home">主页</router-link>
            </li>
            <li>
                <!-- <router-link :to="'/news/'+value">新闻</router-link> -->
                <router-link :to="{name:'News',params:{type:value}}">新闻</router-link>
            </li>
        </ul>
    </div>
</template>
<script>
export default {
    name:"TopNav",
    data(){
        return{
            value:'guonei'
        }
    }
}
</script>
<style scoped>

</style>
